package com.megaspacevr.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author yezi
 * @since 2025-06-17
 */
@Getter
@Setter
@ToString
@EqualsAndHashCode
@TableName("admin_user")
@Schema(name = "AdminUser", description = "管理员表")
public class AdminUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "管理员用户名")
    private String username;

    @Schema(description = "密码（加密存储）")
    private String password;

    @Schema(description = "真实姓名")
    private String realName;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;

    @Schema(description = "最后登录IP")
    private String lastLoginIp;

    @Schema(description = "登录次数")
    private Integer loginCount;

    @Schema(description = "状态")
    private String status;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;

}
